package com.example.websocket.Service.Impl;

import com.example.websocket.DAO.MessageDAO;
import com.example.websocket.Service.MessageService;
import com.example.websocket.pojo.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MessageServicelmpl implements MessageService {

    @Autowired
    MessageDAO messageDAO;
    @Override
    public void save(Message message) {
        messageDAO.insert(message);
    }
}
